﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Hematology.UserSite.controls
{
    public partial class AdminPanelItemSimple : System.Web.UI.UserControl
    {
        public string ItemTitle { get; set; }
        public string ItemLink { get; set; }
        public string IconClass { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                pnlIcon.CssClass = string.Format("adminPanelContainerItemIcon {0}", IconClass);

                btnCommon.Text = ItemTitle;
                btnCommon.PostBackUrl = ItemLink;
            }
        }
    }
}